package com.nbsaas.boot.merchant.rest.convert;

import com.nbsaas.boot.merchant.data.entity.MerchantSettlement;
import com.nbsaas.boot.merchant.api.domain.request.MerchantSettlementRequest;

import org.springframework.beans.BeanUtils;
import com.nbsaas.boot.rest.api.Converter;
import com.nbsaas.boot.utils.BeanDataUtils;

/**
* 商家结算请求对象转换成实体对象
*/

public class MerchantSettlementEntityConvert  implements Converter<MerchantSettlement, MerchantSettlementRequest> {

    @Override
    public MerchantSettlement convert(MerchantSettlementRequest source) {
        MerchantSettlement result = new MerchantSettlement();
        BeanDataUtils.copyProperties(source, result);
        return result;
    }
}

